﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Channels.aspx.cs" Inherits="AzureBlogWebRole.admin.Pages.Channels" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
       
        <asp:Label ID="Label1" runat="server" Text="Nom du canal : "></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Bt_add" runat="server" Text="Ajouter" onclick="Bt_add_Click" />
        <br />
    
       
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="Ods_Channels">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                <asp:BoundField DataField="Name" HeaderText="Name" 
                    SortExpression="Name" />
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
            </Columns>
        </asp:GridView>
         <br />
        <br />
        <asp:Label ID="Lbl_error" runat="server" ForeColor="Red"></asp:Label>
        
        <asp:ObjectDataSource ID="Ods_Channels" runat="server" 
            SelectMethod="GetListChannels" 
            TypeName="AzureProvider.MiniSensor.Channels" 
            DataObjectTypeName="AzureProvider.MiniSensor.Channel" 
            DeleteMethod="DeleteChannel" UpdateMethod="UpdateChannel">
        </asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
